<div class="add_category">
    <a href="/admin/category/">Категории</a> &rarr; категория {$category.name}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <a href="/admin/photo/add/{$category.id}/"><img src="/res/img/admin/add_icon.gif" /></a> <a href="/admin/photo/add/{$category.id}/">Добавить фото</a>&nbsp;&nbsp;&nbsp;&nbsp;
    <a href="/admin/photo/addarchive/{$category.id}/"><img src="/res/img/admin/add_icon.gif" /></a> <a href="/admin/photo/addarchive/{$category.id}/">Добавить архив</a>
</div>
<h2 class="paddinglr paddingtb">Категория {$category.name}</h2>
<div id="content">
    <div id="inner">
    <table class="catalog">
        {foreach_row from=$photos item=doc cols=5 table=no}
          {foreach_cell}
            <a href="/admin/photo/view/{$doc.id}/" rel="{$doc.image}" class="preview" title="{$doc.name}"><img src="{$doc.thumb}" height="50px" /></a><br />
            <a href="#" class="delete" id="{$doc.id}"><img src="/res/img/admin/delete_icon.gif" /></a>
          {/foreach_cell}
        {/foreach_row}
    </table>
    </div>
</div>
<div class="loading px150 center paddingtb paddinglr" style="text-align: center; margin-top: 20px;"><img src="/res/img/admin/preloader.gif" /><br />Отправка данных....</div>
<div class="success"></div>
<br />
<form action="/admin/photo/go/" method="post" enctype="multipart/form-data">
    <input type="hidden" name="id" value="{$category.id}" />
    <input type="hidden" name="type" value="add" />
	<div id="content"><div class="round_t"><div></div></div>
			<div id="inner">
			<table cellspacing="0" cellpadding="4">
				<tbody class="edit">
					<tr>
						<th width="200px">Загрузить картинку</th>
						<td><input type="file" name="userfile" /></td>
					</tr>
				</tbody>
			</table>
			</div>
	<div class="round_b"><div></div></div></div>
	<br />
	<input type="submit" value="Сохранить" />
</form>
